package cn.hflycolin;

public class Demo {

	public static void main(String[] args) throws Exception {
		String inputFile,LAoutput,SAoutput,varfile,profile,errfile;
		inputFile="d:\\compiling.pas";
		LAoutput="d:\\compiling.dyd";
		SAoutput="d:\\compiling.dys";
		varfile="d:\\compiling.var";
		profile="d:\\compiling.pro";
		errfile="d:\\compiling.err";
		//LexicalAnalysis lA=new LexicalAnalysis(inputFile, LAoutput);
		//lA.analyze();
		//SyntacticAnalysis sA=new SyntacticAnalysis(LAoutput, SAoutput,varfile,profile,errfile);
		//sA.analyze();
		LexicalAnalysis la=new LexicalAnalysis(inputFile, LAoutput);
		la.analyze();
		SyntacticAnalysis sA=new SyntacticAnalysis(LAoutput, SAoutput,varfile,profile,errfile);
		sA.analyze();
	}

}
